package com.letoy.edu.controller;

import com.letoy.edu.service.VenuesInfoService;
import io.swagger.annotations.ApiImplicitParam;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/VenuesInfo")
public class VenuesInfoController {

    @Resource
    VenuesInfoService venuesInfoService;

    @RequestMapping(value = "/getAllVenuesInfo", method = RequestMethod.POST)
    @ApiImplicitParam(value = "", name = "Authorization", paramType = "header", dataType = "String", required = true)
    private Map<String, Object> getAllVenuesInfo() {
        Map<String, Object> map = new HashMap<>();
        map.put("data", venuesInfoService.getAllVenuesInfo());
        return map;
    }
}
